package com.hmo.appshop.mamager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmo.appshop.mamager.bean.App;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;


@Mapper
public interface AppMapper extends BaseMapper<App> {


    @Insert("INSERT INTO app ( name,logo, version, size, postdate, type, apk ) VALUES ( #{name},#{logo}, #{version}, #{size}, #{postdate}, #{type}, #{apk} )")
    @Options(useGeneratedKeys = true, keyProperty ="id", keyColumn = "id")
    int insertOne(App app);


}
